package com.itheima.dao;

import com.itheima.pojo.SysDictData;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;
import tk.mybatis.mapper.common.Mapper;

import java.util.List;

@Repository
public interface SysDictDataMapper extends Mapper<SysDictData>{


    @Select("select * from t_sys_dict_data where dict_type_uid = (select uid from `t_sys_dict_type` where dict_type = #{dicType} )")
    List<SysDictData> findBydicType(String dicType);
}
